package cn.exrick.xboot.modules.your.serviceimpl;

import cn.exrick.xboot.modules.your.dao.mapper.BedOrderMapper;
import cn.exrick.xboot.modules.your.entity.BedOrder;
import cn.exrick.xboot.modules.your.service.IBedOrderService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 陪护床接口实现
 * @author chenyunxuan
 */
@Slf4j
@Service
@Transactional
public class IBedOrderServiceImpl extends ServiceImpl<BedOrderMapper, BedOrder> implements IBedOrderService {

    @Autowired(required=true)
    private BedOrderMapper bedOrderMapper;

    @Override
    public IPage<BedOrder> pageOrder(Page initMpPage, QueryWrapper<BedOrder> qw) {
        return this.baseMapper.pageOrder(initMpPage,qw);
    }
}